public class DispersionB implements Dispersion {
	public int calcular(String clave, int tamTabla) {
		int valor = clave.charAt(0);
		
		for (int i = 1; i < clave.length(); i++)
			valor = (valor*32 + clave.charAt(i)) % tamTabla;
		return valor ;
	}

	public String toString() {
		return "Dispersion B";
	}
}
